package com.itheima.objectstream;

import com.itheima.domain.Student;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Demo02 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("day13\\student2.txt"));
        Student o = (Student) ois.readObject();
        System.out.println(o);


    }
}
